package com.globallogic.dailyplanner.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.globallogic.dailyplanner.dto.History;

public interface HistoryRepository extends JpaRepository<History, Integer>{
	@Query("select history from History history WHERE history.user.id = :id")
	List<History> findById(@Param("id") int id);
}
